package net.wsfcp.android.http.mvp.contract;

import net.wsfcp.android.bean.resultbean.UserBean;

import java.io.IOException;
import java.io.InputStream;

/**
 * Created by Shaoboyang on 2018/12/14.
 * 契约类,定义登录用到的一些接口方法
 */

public class LoginContract {

    public interface LoginView {
        String getUserName();

        String getPwd();

        String getCode();

        void loginSuccess(UserBean loginBean, String name, String pwd);

        void loginFail(String failMsg);


        void getImageCodeSuccess(InputStream imageCodeBean) throws IOException;

        void getImageCodeFail(String failMsg);

    }


    public interface LoginPresenter {
        void login(String name, String pwd,String code);
        void getImageCode();
    }
}
